<?php 
/* 
Template Name: About
*/

get_header(); ?>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<?php require('post.php'); ?>

<h4 id="comments"><?php comments_number('No guestbook entries', '<span class="num">One</span> visitor', '<span class="num">%</span> visitors have left their mark' );?></h4> 
	<ol>
	<?php $i=0; foreach ($comments as $k=>$comment) : ?>
	   <? if ($comment->comment_type == 'pingback'): ?>
	   <li class="pingback" id="comment-<?php comment_ID() ?>">
	   Pingback: <?php comment_author_link() ?>
	   </li>
	   <? else: ?>
		<li class="<?= (($i++ % 2 == 0) ? 'odd' : 'even')?>" id="comment-<?php comment_ID() ?>">
			<a href="#comment-<?php comment_ID() ?>" title="Comment Link" class="comment-link">#</a>
			
			<cite><img src="<?php gravatar("PG", 40, "http://tantannoodles.com/wp-content/themes/tantan/images/gravatar.gif"); /* no default img */ ?>" class="gravatar" /><?php comment_author_link() ?></cite> <span class="date"><?php comment_date('M d') ?></span><br>
			<?php if ($comment->comment_approved == '0') : ?>
            <p class="error">Your comment is awaiting moderation.</p>
			<?php endif; ?>
            <div class="comment-text"><?php comment_text() ?></div>
		</li>
		<? endif; ?>
	<?php endforeach; /* end for each comment */ ?>

	</ol>

<h4>Leave your mark</h4>
<?php include('comments-form.php');?>

<?php endforeach; ?>
<?php endif; ?>
<?php get_footer(); ?>
